-- GENERATED SPELL FOR [Murloc Minor Oracle] --


function spell0_456(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(332,pUnit)
pUnit:RegisterEvent('Sorts_456', 2000, 1)
end

function spell1_456(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_456', 3000, 1)
end

function Sorts_456(pUnit, Event)
local choix_sorts_456 = math.random(0, 1)
if choix_sorts_456 == 0 then
pUnit:RegisterEvent('spell0_456', 1, 1)
end
if choix_sorts_456 == 1 then
pUnit:RegisterEvent('spell1_456', 1, 1)
end
end

function mob456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_456', math.random(1500, 3000), 1)
end

function mob456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(456, 1, 'mob456_Action')
RegisterUnitEvent(456, 2, 'mob456_Leave')
RegisterUnitEvent(456, 3, 'mob456_Kill')
RegisterUnitEvent(456, 4, 'mob456_Die')
